using System;

namespace Pvp.Ecs
{
    /// <summary>
    /// 声明一个实体
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
    public class EntityDeclareAttribute : System.Attribute
    {
        public int entityType { get; }
        public int entitySubType { get; }
        public string desc { get; }

        public EntityDeclareAttribute(int type, int subType,string info)
        {
            entityType = type;
            entitySubType = subType;
            desc = info;
        }

        public EntityDeclareAttribute(int type, int subType)
        {
            entityType = type;
            entitySubType = subType;
        }
    }
}